package com.kongmou.springReview.advanced.conditional;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCOnditional {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext contxt = new AnnotationConfigApplicationContext(ConditionConfig.class);
		ListService listService = contxt.getBean(ListService.class);
		System.out.println(contxt.getEnvironment().getProperty("os.name") + "系统的命令是：" + listService.showComman());
	}

}
